package com.carbon.trade.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.carbon.common.api.Paging;
import com.carbon.trade.entity.CarbonTradeQuote;
import com.carbon.trade.param.CarbonTradeQuoteQueryParam;
import com.carbon.trade.vo.CarbonTradeQuoteQueryVo;
import com.carbon.trade.vo.MetaregistryDataVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 * 碳交易供需行情 Mapper 接口
 * </p>
 *
 * @author lin rizhao
 * @since 2022-05-21
 */
@Repository
public interface CarbonTradeQuoteMapper extends BaseMapper<CarbonTradeQuote> {

    ArrayList<String> getDeliveryMethod(@Param("type") String type);

    IPage<CarbonTradeQuote> handleSearch(@Param("page") Page<CarbonTradeQuote> page,@Param("param") CarbonTradeQuoteQueryParam param);

    String transferType(String assetType);

    String transferNumToChinese(String assetType);
}
